import 'package:chatbot/juse_moxing.dart';

class JueseLiebiao {
  late int code;
  late ShujuTi shuju;
  late String xinxi;

  static JueseLiebiao fromMap(Map<String, dynamic> map) {
    JueseLiebiao roleListModelBean = JueseLiebiao();
    roleListModelBean.code = map['code'];
    roleListModelBean.shuju = ShujuTi.fromMap(map['data']);
    roleListModelBean.xinxi = map['message'];
    return roleListModelBean;
  }

  Map toJson() => {
        "code": code,
        "data": shuju,
        "message": xinxi,
      };
}

class ShujuTi {
  late bool isLastPage;
  late List<JueSe> liebiao;
  late int total;

  static ShujuTi fromMap(Map<String, dynamic> map) {
    ShujuTi dataBean = ShujuTi();
    dataBean.isLastPage = map['isLastPage'];
    dataBean.liebiao = []
      ..addAll((map['list'] as List ?? []).map((o) => JueSe.fromMap(o)));
    dataBean.total = map['total'];
    return dataBean;
  }

  Map toJson() => {
        "isLastPage": isLastPage,
        "list": liebiao,
        "total": total,
      };
}
